//
// 作者：AKA_GGbond
// 时间：2025/7/16
// 邮箱：evain_wl@163.com
//

#ifndef ESMU_W_LOGIN_H
#define ESMU_W_LOGIN_H

#include <QWidget>
#include "W_LoginButton.h"
#include "../Compoment/W_InputBox.h"

class QPropertyAnimation;

class W_Login : public QWidget
{
    Q_OBJECT

public:
    explicit W_Login(QWidget *parent = nullptr);
    ~W_Login();

public slots:
    void execute_animation(W_LoginButton::AnimationState State);

protected:
    void paintEvent(QPaintEvent *event);

private:
    void cropCorner();
    void drawText();
    void animations();

private slots:
    void on_loginButtonClicked();

private:
    QPropertyAnimation *m_animation{nullptr};
    W_LoginButton *m_loginButton{nullptr};
    W_LoginButton *m_quitButton{nullptr};
    W_InputBox* m_username{nullptr};
    W_InputBox* m_password{nullptr};

    int m_zoom_rate{20};
};


#endif //ESMU_W_LOGIN_H
